but the symptoms you described sound just like when I tried to drive my car without the MAF connected.
Either way it's most likely something electrical. Could be CAS or PTU. Check PTU subharness plugs for corrosion where the wires go into the connectors.